{template aljbd:footer_nav}
{if $_GET['act']!='clist' && $_GET['act']!='nlist'}
<script src="source/plugin/aljbd/js/jquery.js"></script>
<script type="text/javascript">
    var jq = jQuery.noConflict();
</script>
{/if}
<script src="source/plugin/aljbd/js/sj/jquery.lazyload.min.js"></script>

{if $settings['is_lazyload']['value']}

<script type="text/javascript">
jq(function() {
          jq("img").lazyload({
				placeholder : "$loading",
                effect: "fadeIn",
				threshold: 100,
				failure_limit : 50,
				skip_invisible: false
           });
      });
</script>
{/if}
<script type="text/javascript">
if(navigator.userAgent.indexOf('Appbyme') > -1){
	{if $settings['hidetop']['value']==1}
	jq('header').hide();
	jq('li header').show();
	{/if}
	{if $settings['hidebottom']['value']==1}
	jq('footer').hide();
	jq('.footermenu').hide();
	{/if}
}
</script>
<style type="text/css">
	.u_top {
		border-radius: 50%;
		bottom: 50px;
		display: none;
		height: 40px;
		opacity: 0.5;
		position: fixed;
		right: 10px;
		width: 40px;
		z-index: 50;
		background: #888 url("source/plugin/$pluginid/images/sj/deta_15.png") no-repeat center center;
		background-size: 18px;
	}
	.u_post {
        border-radius: 50%;
        bottom: 100px;
        display: block;
        height: 40px;
        opacity: 0.3;
        position: fixed;
        right: 10px;
        width: 40px;
        z-index: 50;
        background: #000 url("source/plugin/$pluginid/images/sj/edit.png") no-repeat center center;
        background-size: 18px;
    }
	.u_search {
		border-radius: 50%;
		bottom: 150px;
		display: block;
		height: 40px;
		opacity: 0.5;
		position: fixed;
		right: 10px;
		width: 40px;
		z-index: 50;
		background: #888 url("source/plugin/$pluginid/images/sj/search_v.png") no-repeat center center;
		background-size: 18px;
	}

	.u_user {
    border-radius: 50%;
    bottom: 200px;
    display: block;
    height: 40px;
    opacity: 0.3;
    position: fixed;
    right: 10px;
    width: 40px;
    z-index: 50;
    background: #000 url("source/plugin/$pluginid/images/sj/avatar.png") no-repeat center center;
    background-size: 18px;
}
.u_index {
    border-radius: 50%;
    bottom: 250px;
    display: block;
    height: 40px;
    opacity: 0.4;
    position: fixed;
    right: 10px;
    width: 40px;
    z-index: 50;
    background:#000 url("source/plugin/$pluginid/images/sj/index_v.png") no-repeat center center;
    background-size: 18px;
}
</style>

{if !$settings['is_mobile_suspension']['value']}
	{if strpos($_SERVER["HTTP_USER_AGENT"],'Appbyme')>0}
	<a class="u_user"  href="plugin.php?id=$pluginid&act=user" ></a>
	<a class="u_index" href="plugin.php?id=$pluginid"></a>
	{/if}

	{if ($_GET['act'] == 'dianpu' || $_GET['act'] == 'goods') && $settings['is_type_bg']['value']==1}
	{if file_exists("source/plugin/dcdz/dcdz.inc.php")}
	<a class="u_search"  id="u_search" ></a>
	<script type="text/javascript">
		jq(function() {
            jq("#u_search").click(function(){
                if(jq(".search").css("display")=="none"){
                    jq(".search").show();
                }else{
                    jq(".search").hide();
                }
            });
		});
	</script>
	{else}
	<a class="u_search"  href="plugin.php?id=aljbd&act=search" ></a>
	{/if}
	{/if}
	{if !$config['sj_index_lz']}
	<a class="u_post"  href="plugin.php?id=$pluginid&act=attend" ></a>
	{/if}
{/if}

<a class="u_top" target="_self"  style="display: none;"></a>
<script type="text/javascript">
function backTop() {
    jq(window).scroll(function() {
        if (jq(window).scrollTop() > (jq(window).height() * 0.5)) {
            jq(".u_top").fadeIn(500);
        } else {
            jq(".u_top").fadeOut(500);
        }
    });
    jq(".u_top").click(function() {
        jq('body,html').animate({
            scrollTop: 0
        }, 1000);
        return false;
    });
}
function miniaurl() {
    //jq('a').unbind();
    jq(document).on('click', 'a', function () {
        //alert(jq(this).attr('href'));
        var webVUrl = jq(this).attr('href');
        if (isWeiXin() && webVUrl != 'javascript:;' && webVUrl != 'javascript:void(0)') {
            if (typeof wx !== 'undefined') {
                if (window.__wxjs_environment === 'miniprogram') {
                    miniProgramwebview(webVUrl);
                    return false;
                }
            }
        }
    });
}
function isWeiXin() {
    var ua = window.navigator.userAgent.toLowerCase();
    if (ua.match(/MicroMessenger/i) == 'micromessenger') {
        return true;
    } else {
        return false;
    }
}
function miniProgramwebview(url){
    var path = '/pages/index/index?webVUrl=' + encodeURIComponent(url);
    wx.miniProgram.navigateTo({
        url: path
    });
}
jq(function() {
	backTop();
    miniaurl();
});
{if $_GET['id']!='aljgwc' && $_GET['id']!='aljbdx'}
function tips(txt, fun) {
	jq('.tips').remove();
	var div = jq('<div style="background: url(source/plugin/aljbd/images/tips.png);max-width: 85%;min-height: 77px;min-width: 270px;position: absolute;left: -1000px;top: -1000px;text-align: center;border-radius:10px;"><span style="color: #ffffff;line-height: 77px;font-size: 23px;">' + txt + '</span></div>');
	jq('body').append(div);
	div.css('zIndex', 9999999);
	div.css('left', parseInt((jq(window).width() - div.width()) / 2));
	var top = parseInt(jq(window).scrollTop() + (jq(window).height() - div.height()) / 2);
	div.css('top', top);
	setTimeout(function() {
		div.remove();
		if (fun) {
			fun();
		}
	}, 2000);
}
{/if}
</script>
{if $_G['cache']['plugin']['aljhtx']}
{template aljhtx:common_footer}
{/if}

{if file_exists('source/plugin/aljhb/aljhb.inc.php') && $_GET['id']!='aljgwc' && ($_GET['act']=='member' || $_GET['act']=='goodslist' || $_GET['act']=='noticelist' || $_GET['act']=='consumelist' || $_GET['act']=='consumeview' || $_GET['act']=='noticeview' || $_GET['act']=='goodslist' || $_GET['act']=='view') && $cparray['aljhb']['available'] == 1}
	{template aljhb:red_packet}
{elseif file_exists('source/plugin/mapp_share/api/api.php') && $_G['cache']['plugin']['mapp_share']}
	{template mapp_share:api}
{else}
	<script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
{/if}

{if $_GET['act'] != 'orderlist'}
<!--{eval updatesession();}-->
<!--{if defined('IN_MOBILE')}-->
	<!--{eval output();}-->
<!--{else}-->
	<!--{eval output_preview();}-->
<!--{/if}-->
{/if}
